#include <stdio.h>
#define LENGTH 5

int main(){
    double score[LENGTH] = {0};

    printf("输入5个成绩...\n");
    for(int i = 0; i < LENGTH; i++){
        scanf("%lf", &score[i]);
    }

    double score_sum = 0;
    for(int i = 0; i < LENGTH; i++){
        score_sum += score[i];
    }

    printf("总分:%.2lf,平均分%.2lf\n", score_sum, score_sum / LENGTH);

    return 0;

}